<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>年利息</title>
		<style>
		span{
			color: red;
		}
		</style>
	</head>
	<body>
		<script>
			var year = 2012;
			var i = 25;
			while(i <= 100){
				i = i * 1.25;
				year++;
				document.write(year+"年培养了:<span>"+Math.round(i)+"</span>万人<br />")
			}
		</script>
	</body>
</html>
